package com.ll.exception;

/**
 * 用户自定义异常信息的�?些常量信�?
 * @author sunhuaili
 */
public class UserExceptionConstants {

	public static final ExceptionMsg IO_ERROR = new ExceptionMsg("IO读写错误");

	public static final ExceptionMsg URL_ERROR = new ExceptionMsg("URL地址错误");

	public static final ExceptionMsg PARAMETER_ERROR = new ExceptionMsg("传入参数错误");

	public static final ExceptionMsg GET_ERROR = new ExceptionMsg("获取数据库失败");

	public static final ExceptionMsg INSERT_ERROR = new ExceptionMsg("存储mongodb数据库失败");

	public static final ExceptionMsg CLOSE_ERROR = new ExceptionMsg("mongodb数据库关闭失败");
	
	public static final ExceptionMsg MAINTAINING = new ExceptionMsg("系统正在维护中，请联系管理员");
	
	public static final ExceptionMsg ILLEGAL_ACCESS = new ExceptionMsg("未授权的访问");

	public static final ExceptionMsg NULL = new ExceptionMsg("数据库中返回的数据为空");
	
	public static final ExceptionMsg ADDRESSEXCEPTION = new ExceptionMsg("收件人地址错误");

	public static final ExceptionMsg AUTHENTICATIONFAILEDEXCEPTION = new ExceptionMsg("发件人邮箱密码错误");
	
	public static final ExceptionMsg MESSAGINGEXCEPTION = new ExceptionMsg("消息错误");
	
	public static final ExceptionMsg SMTPADDRESS = new ExceptionMsg("SMTP服务错误");
	
	public static final ExceptionMsg EWSSENDMAIL = new ExceptionMsg("EWSSENDMAIL初始化错误");
	
	public static final ExceptionMsg SENDMESSAGINGEXCEPTION = new ExceptionMsg("邮件发送失败");
	
	public static final ExceptionMsg UNAUTHORIZED = new ExceptionMsg("此ip未经过认证");
	
	public static final class ExceptionMsg {

		private String errorMsg;

		private ExceptionMsg(String errorMsg) {
			this.errorMsg = errorMsg;
		}

		public String getErrorMsg() {
			return errorMsg;
		}

	}
}
